{include file="../template/header.html" /}

<div class="my-3 my-md-5">
    <div class="container">
        <div class="row">
            <div class="col-lg-8 mx-auto">
                <div class="card">
                    <div class="card-body">
                        <h3 class="card-title">会员查看</h3>
                        <div class="row">
                            <table class="table table-bordered"> 
                                <tr>
                                    <td>姓名</td>
                                    <td>{$u['name']}</td>
                                    <td>医生</td>
                                    <td>{$d['name']}</td>
                                    <td rowspan="4" width="20%"><img src="{$u['photo']}" style="width: 100%;margin: 0 auto"></td>
                                </tr>
                                <tr>
                                    <td>性别</td>
                                    <td>{eq name="u.gender" value="1"}
                                        男
                                        {else/}
                                        女
                                        {/eq}</td>
                                    <td>就诊日期</td>
                                    <td>{$u['firstdate']}</td>
                                </tr>
                                <tr>
                                    <td>电话</td>
                                    <td>{$u['tel']}</td>
                                    <td>复诊日期</td>
                                    <td>{$u['lastdate']}</td>
                                </tr>
                                <tr>
                                    <td>住址</td>
                                    <td>{$u['address']}</td>
                                    <td>积分</td>
                                    <td>{$u['integral']}</td>
                                </tr>
                            </table>
                        </div>
                    </div>

                    <div class="card-body">
                        <h3 class="card-title">病例</h3>
                        {volist name="c" id="data"}
                        <div class="row">
                            <table class="table table-bordered">
                                <tr>
                                    <td>日期</td>
                                    <td>{$data['date']}</td>
                                    <td>病人</td>
                                    <td>{$u['name']}</td>
                                    <td>医生</td>
                                    <td>{$data['name']}</td>
                                </tr>
                                <tr>
                                	<td>患者诉求</td>
                                	<td colspan="5">{$data['ask']}</td>
                                </tr>
                                <tr>
                                	<td>病例内容</td>
                                	<td colspan="5">{$data['content']}</td>
                                </tr>
                                <tr>
                                	<td>处方</td>
                                	<td colspan="5">{$data['prescription']}</td>
                                </tr>
                            </table>
                        </div>
                        {/volist}

                    </div>
                    <a href="/Cases/Add/id/{$u['id']}/yid/{$d['id']}" class="btn btn-lg btn-primary">添加病例</a>

                    
                </div>

                
                    
            </div>
        </div>
    </div>
</div>
{include file="../template/footer.html" /}